<template>
    <div id="picImg">
        <div class="img">
            <PicZoom :url="logoUrl" :scale="3"></PicZoom>
        </div>

        <div class="bottom-img">
            <a href="javascrip:;" class="left-icon"></a>
            <ul class="imgList">
                <li class="on"><a href="javascript:;"><img :src="logoUrl"></a></li>
                <li><a href="javascript:;"><img :src="logoUrl"></a></li>
                <li><a href="javascript:;"><img :src="logoUrl"></a></li>
                <li><a href="javascript:;"><img :src="logoUrl"></a></li>
                <li><a href="javascript:;"><img :src="logoUrl"></a></li>
                <li><a href="javascript:;"><img :src="logoUrl"></a></li>
                <li><a href="javascript:;"><img :src="logoUrl"></a></li>
                <li><a href="javascript:;"><img :src="logoUrl"></a></li>
            </ul>
            <a href="javascrip:;" class="right-icon"></a>
        </div>
    </div>
</template>

<script>
import PicZoom from 'vue-piczoom'//放大镜插件
export default {
    name:'picImg',
    data(){
        return{
            logoUrl:require('@/assets/logo.png'),
            activeImg:1,//选中的图片
        }
    },
    components:{
        PicZoom
    }
}
</script>

<style lang="scss" scoped>
#picImg{
    width: 397px;
    height: 490px;
    
}
.img{
    width: 397px;
    height: 397px;
    border: 1px solid #ddd;
}
.bottom-img{
    width: 397px;
    height: 77px;
    display: flex;
    .imgList{
        margin-top: 10px;
        width: 316px;
        display: flex;
        overflow: hidden;
        li{
            margin-left: 10px;
            margin-right: 10px;
            width: 60px;
            height: 60px;
        }
        li img{
            width: 60px;
            height: 60px;
            border: 1px solid #dcdddd;
        }
        .on{
            border: 1px solid #FF0000;
        }
    }
}
.left-icon{
    width: 12px;
    height: 28px;
    margin-top: 28px;
    margin-left: 15px;
    display: inline-block;
    background: url(~@/assets/images/goods/icon-left.png) no-repeat;
}
.right-icon{
    width: 15px;
    height: 28px;
    margin-top: 28px;
    margin-left: 15px;
    display: inline-block;
    background: url(~@/assets/images/goods/icon-right.png) no-repeat;
}
</style>